#!/bin/SH
FOLDER_NAME=engine_server

PID_PATH="${PWD}/file_sources/jphenix.pid"
PID_VALUE=$(cat ${PID_PATH})

echo $'\n\n\n'
echo "******************************************************************"
echo $'\n'
echo "**** Before Stop Process:[${PID_VALUE}] ****"
echo $'\n'
echo "ps -ef | grep ${FOLDER_NAME}"
ps -ef | grep ${FOLDER_NAME}
echo $'\n'
echo "*******************************************************************"
echo $'\n'
kill -9 ${PID_VALUE}
RETURN_VALUE="$?"
echo "**** Stop Proess:[${PID_VALUE}] Return:[${RETURN_VALUE}] ****"
echo "**** After Info ****"
echo "ps -ef | grep ${FOLDER_NAME}"
ps -ef | grep ${FOLDER_NAME}
echo $'\n'
echo "*******************************************************************"
echo $'\n\n\n'
